display.setStatusBar( display.HiddenStatusBar )
require("xml_parser")
require("xml")
http = require("socket.http")
ltn12 = require("ltn12")

local director = require("director")
local mainGroup = display.newGroup()

--Address server 
serverConnect= "www.azsoft.com.vn/myapp/nauan"

local function main()
	if system.getInfo( "environment" ) == "simulator" then
		mainGroup:insert(director.directorView)
		director:changeScene("loading", true)
	end
	return true
end

local function onSystemEvent( event )
	if event.type == "applicationExit" then
	elseif event.type == "applicationStart" then
		main()
	elseif event.type == "applicationSuspend" then
	elseif event.type == "ApplicationResume" then
	end
end
Runtime:addEventListener( "system", onSystemEvent )


